package org.corlan.events {
	import flash.events.Event;
	import org.corlan.SongVO;
	
	public class PlayerEvent extends Event {
		
		public static const PLAY:String = "play";
		public static const PAUSE:String = "pause";
		public static const NEXT:String = "next";
		public static const PREV:String = "prev";
		
		public static const SONG_SELECTED:String = "songselected";
		public static const PLAYLIST_CHANGED:String = "playlistchanged";
		
		public static const PLAYER_SELECTED:String = "playerselected";

		public static const REFRESH:String = "refreshplayerlist";
		public static const GET_PLAYLIST:String = "getplaylist";
		public static const PLAYING:String = "playing";
		
		public static const SET_VOLUME:String = "setvolume";
		public static const GET_VOLUME:String = "getvolume";
		public static const VOLUME:String = "volume";
		
		public var volume:Number;
		public var song:SongVO;
		public var index:int;
		public var percentage:Number;
		public var player:String;
		
		public function PlayerEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) {
			super(type, bubbles, cancelable);
		}
	}
}